package com.ruoyi.project.business.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 租地土地对象 business_area
 * 
 * @author ruoyi
 * @date 2020-10-19
 */
public class BusinessArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 土地id */
    private Long id;

    /** 面积 */
    @Excel(name = "面积")
    private BigDecimal area;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 土地名称 */
    @Excel(name = "土地名称")
    private String landName;

    /** 土地类型(1 水稻田 2 油菜田  3 农田) */
    @Excel(name = "土地类型(1 水稻田 2 油菜田  3 农田)")
    private Integer landType;

    /** 土地编号 */
    @Excel(name = "土地编号")
    private String landCode;

    /** 图片 */
    @Excel(name = "图片")
    private String pic;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;

    /** 当前土地价格 */
    @Excel(name = "当前土地价格")
    private BigDecimal price;

    /** 售出单位 */
    @Excel(name = "售出单位")
    private String outUnit;

    /** 土地状态(0空置 1水稻 2>>>>) */
    @Excel(name = "土地状态(0空置 1水稻 2>>>>)")
    private String  areaStatus;

    /** 出租状态(1已出租 2 未出租) */
    @Excel(name = "出租状态(1已出租 2 未出租)")
    private Integer rentalStatus;

    /** 所属人id */
    @Excel(name = "所属人id")
    private Long userId;

    /** 植物的建议 */
    @Excel(name = "植物的建议")
    private String plantAdvice;

    /** 预计收获时间 */
    @Excel(name = "预计收获时间")
    private String getTime;


    /**
     * 到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date gmtEnd;

    /**
     * 所属人昵称
     */
    private String  nickname;

    private Long areaId;

    public Long getAreaId() {
        return areaId;
    }

    public void setAreaId(Long areaId) {
        this.areaId = areaId;
    }

    public Date getGmtEnd() {
        return gmtEnd;
    }

    public void setGmtEnd(Date gmtEnd) {
        this.gmtEnd = gmtEnd;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setArea(BigDecimal area)
    {
        this.area = area;
    }

    public BigDecimal getArea()
    {
        return area;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setLandName(String landName) 
    {
        this.landName = landName;
    }

    public String getLandName() 
    {
        return landName;
    }
    public void setLandType(Integer landType) 
    {
        this.landType = landType;
    }

    public Integer getLandType() 
    {
        return landType;
    }
    public void setLandCode(String landCode) 
    {
        this.landCode = landCode;
    }

    public String getLandCode() 
    {
        return landCode;
    }
    public void setPic(String pic) 
    {
        this.pic = pic;
    }

    public String getPic() 
    {
        return pic;
    }
    public void setUnitPrice(BigDecimal unitPrice) 
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice() 
    {
        return unitPrice;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setOutUnit(String outUnit) 
    {
        this.outUnit = outUnit;
    }

    public String getOutUnit() 
    {
        return outUnit;
    }
    public void setAreaStatus(String areaStatus)
    {
        this.areaStatus = areaStatus;
    }

    public String getAreaStatus()
    {
        return areaStatus;
    }
    public void setRentalStatus(Integer rentalStatus) 
    {
        this.rentalStatus = rentalStatus;
    }

    public Integer getRentalStatus() 
    {
        return rentalStatus;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPlantAdvice(String plantAdvice) 
    {
        this.plantAdvice = plantAdvice;
    }

    public String getPlantAdvice() 
    {
        return plantAdvice;
    }
    public void setGetTime(String getTime) 
    {
        this.getTime = getTime;
    }

    public String getGetTime() 
    {
        return getTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("area", getArea())
            .append("unit", getUnit())
            .append("landName", getLandName())
            .append("landType", getLandType())
            .append("landCode", getLandCode())
            .append("pic", getPic())
            .append("unitPrice", getUnitPrice())
            .append("price", getPrice())
            .append("outUnit", getOutUnit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("areaStatus", getAreaStatus())
            .append("rentalStatus", getRentalStatus())
            .append("userId", getUserId())
            .append("plantAdvice", getPlantAdvice())
            .append("getTime", getGetTime())
            .toString();
    }
}
